package com.mango.banner.widget.ImageLoader;

import android.content.Context;
import android.widget.ImageView;

/**
 * @author dengjiajin
 * @date 2018-11-27
 */
public class DefaultImageLoader implements ImageLoaderInterface<ImageView> {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        imageView.setImageResource((int) path);
    }

    @Override
    public ImageView createImageView(Context context) {
        return new ImageView(context);
    }
}